<template>
    <!-- BANNER图片 -->
    <div class="banner-component-container">
        <slot name="banner-image"></slot>
        <slot name="banner-back"></slot>
        <slot name="banner-inst"></slot>
        <slot name="banner-btn"></slot>
        <!-- 播放按钮 和 动态消息栏 -->
        <!--<slot name="banner-play"></slot>-->
        <!--<slot name="banner-msg"></slot>-->
    </div>
</template>

<script>
    export default {
        props: {
            // isBig: {
            //     type: Boolean,
            //     default: false
            // }
        }
    }
</script>

<style>
    .banner-component-container {
        width: 100%;
        padding-bottom: 56.5%;
        position: relative;
        box-sizing: border-box;
    }

    /* 由槽口在外部引入的元素 */
    .banner-component-img {
        display: block;
        width: 100%;
        height: 100%;
        opacity: 0.9;
        position: absolute;
        object-fit: cover;
        z-index: 997;
        left: 0;
        top: 0;
    }
    .banner-component-pay{
        width: 100%;
        position: absolute;
        left:0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        height:2.5rem;
        line-height: 2.5rem;
        color:#fff;
        padding:0 0.8rem;
        box-sizing: border-box;
        font-size: 0.9rem;
    }
    .banner-component-pay .pay_btn{
        margin: 0;
    /* border: 1px solid #fff;*/
        border-radius: 200rem;
        padding: 0.2rem 1rem;
        line-height: 1rem;
        display: inline-block;
        color:#fff;
        background: #FF753F;
        float: right;
        top:0.8rem;
        margin-top: 0.55rem;
    }
    /* 需要包含视频 */
    .banner-component-backcloth {
        width: 100%;
        height: 100%;
        position: absolute;
        z-index: 998;
        left: 0;
        top: 0;
        background-color: #000;
        opacity: 0.25;
    }

    /*.banner-component-play{*/
    /*width: 3.2rem;*/
    /*height: 3.2rem;*/
    /*position: absolute;*/
    /*z-index: 1000;*/
    /*top: 50%;*/
    /*left: 50%;*/
    /*margin-top: -1.6rem;*/
    /*margin-left: -1.6rem;*/
    /*}*/
    /*.banner-component-play img{width: 100%;}*/
    /*.banner-component-msg{*/
    /*width: 80%;*/
    /*max-width: 18rem;*/
    /*height: 2.8rem;*/
    /*position: absolute;*/
    /*z-index: 999;*/
    /*top: 3.3rem;*/
    /*left: 0;*/
    /*background-color: #000;*/
    /*opacity: 0.75;*/
    /*color: #FFF;*/
    /*padding: 0.3rem 0.6rem;*/
    /*border-top-right-radius: 1.0rem;*/
    /*border-bottom-right-radius: 1.0rem;*/
    /*font-size: 1.0rem;*/
    /*line-height: 1.4rem;*/
    /*}*/

    /* 显示频道信息 */
    .banner-component-channel-info {
        position: absolute;
        z-index: 999;
        left: 0;
        bottom: 0;
        color: #FFF;
        padding: 0.6rem 0.8rem;
        opacity: 0.9;
    }

    .banner-component-channel-info-ablam {
        padding: 0.6rem 0.8rem;
    }
    .banner-component-channel-title-ablam{
        font-size: 1.3rem;
        color:#222;
        font-weight: bold;
        padding:0.5rem 0;
    }
    .banner-component-channel-title {
        font-weight: bold;
        font-size: 1.3rem;
        line-height: 2.0rem;
    }

    .banner-component-channel-num {
        font-size: 0.9rem;
        line-height: 1.2rem;
    }

    .banner-component-channel-content {
        margin-top: 0.7rem;
        font-size: 0.8rem;
        line-height: 1.0rem;
        height: 3.0rem;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
    }

    .banner-component-channel-content-ablam {
        margin-top: 0;
        font-size: 18px;
        line-height:1.5;

    }
    .banner-component-channel-content-ablam p,.banner-component-channel-content-ablam ul,.banner-component-channel-content-ablam li,.banner-component-channel-content-ablam h5,
    .banner-component-channel-content-ablam h1,.banner-component-channel-content-ablam h2,.banner-component-channel-content-ablam h3,.banner-component-channel-content-ablam h4,
    .banner-component-channel-content-ablam form{
        padding:0;margin:0;
    }

    .banner-component-channel-content-ablam img,.banner-component-channel-content-ablam iframe,.banner-component-channel-content-ablam video{
        max-width: 100% !important;
    }
    .banner-component-channel-content-ablam img,.banner-component-channel-content-ablam video{
        min-height: 10px;
        display: block;
        margin: 0 auto;
        height: auto!important;
    }
    .banner-component-channel-content-ablam iframe{
        display: block;
    }
    /* 显示主播信息 */
    .banner-component-anchor-info, .banner-component-anchor-btn {
        width: 100%;
        position: absolute;
        z-index: 999;
        left: 0;
        color: #FFF;
        text-align: center;
    }

    .banner-component-anchor-info {
        top: 0.6rem;
    }

    .banner-component-anchor-face {
    }

    .banner-component-anchor-face img {
        display: block;
        margin: auto;
        width: 3.7rem;
        height: 3.7rem;
        border: 0.15rem solid #FFF;
        border-radius: 0.5rem;
    }

    .banner-component-anchor-name {
        font-size: 1.3rem;
        line-height: 2.2rem;
    }

    .banner-component-anchor-num {
        font-size: 0.9rem;
        line-height: 1.1rem;
    }

    .banner-component-anchor-btn {
        bottom: 0.2rem;
    }
</style>